package cn.sw.system.onemany.agg.config;

import cn.sw.system.onemany.agg.vo.aVo;
import cn.sw.system.onemany.agg.zhujie.DynamicQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api")
public class DynamicQueryController {

    @Autowired
    private DynamicQueryService dynamicQueryService;

    @GetMapping("/query")
    public List<aVo> executeQuery() throws Exception {
        List<aVo> aVoList = dynamicQueryService.queryByVO(aVo.class);
        return aVoList;
    }
}
